//
//  Drop+CoreDataProperties.swift
//  Drop
//
//  Created by hushaohua on 2018/2/24.
//  Copyright © 2018年 init. All rights reserved.
//
//

import Foundation
import CoreData


extension Drop {

    @nonobjc public class func fetchRequest() -> NSFetchRequest<Drop> {
        return NSFetchRequest<Drop>(entityName: "Drop")
    }

    @NSManaged public var begin: NSDate?
    @NSManaged public var end: NSDate?
    
    @NSManaged public var weekday: Int16
    @NSManaged public var weekOfYear: Int16
    @NSManaged public var year: Int32
    @NSManaged public var yearForWeek: Int32
    @NSManaged public var day: Int16
    @NSManaged public var month: Int16
    
    @NSManaged public var note: String?
    @NSManaged public var pushId: String?
    
    @NSManaged public var tag: Tag?
    
    @objc public var dateString: String?{
        return (self.begin! as Date).defaultDateString();
    }

}
